package com.coldchain.order.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coldchain.order.entity.CreditOrder;

/**
 * <p>
 * 企业结算订单 Mapper 接口
 * </p>
 *
 * @author fangliai
 * @since 2018-09-25
 */
public interface CreditOrderMapper extends BaseMapper<CreditOrder> {
	/**
	 *	查找用户结算订单
	 * @param userid
	 * @return
	 */
	public CreditOrder getUserId(@Param("userid") String userid,@Param("date") Date date);
	
	/**
	 * 根据时间查询结算订单
	 * @param page
	 * @param date
	 * @return
	 */
	public IPage<CreditOrder> quert(Page<CreditOrder> page,@Param("ew") Wrapper<CreditOrder> ew);

}
